package com.dd.stack.kafka.consumer;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.kafka.annotation.EnableKafka;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @Author liuxianmeng
 * @CreateTime 2024/11/5 23:12
 * @Description 启动类
 */
@EnableKafka
@EnableScheduling // 支持定时任务
@SpringBootApplication
@ComponentScan(basePackages = {"com.dd.stack.kafka.consumer"})
public class KafkaConsumerApp {
    public static void main(String[] args) {
        SpringApplication.run(KafkaConsumerApp.class, args);
    }
}
